﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FarseerGames.FarseerPhysics;
using FarseerGames.FarseerPhysics.Dynamics;
using FarseerGames.FarseerPhysics.Factories;
namespace PocketEngine.Physics
{
    public class pBoxBody : pBody
    {
        public float Width
        {
            get
            {
                return mWidth;
            }
            set
            {
                mWidth = value;
            }
        }
        private float mWidth;

        public float Height
        {
            get
            {
                return mHeight;
            }
            set
            {
                mHeight = value;
            }
        }
        private float mHeight;

        public float Mass
        {
            get
            {
                return mMass;
            }
            set
            {
                mMass = value;
            }
        }
        private float mMass;
        public pBoxBody(float width,float height,float mass)
        {
            Width = width;
            Height = height;
            Mass = mass;
            Body = BodyFactory.Instance.CreateRectangleBody(Engine.pEngine.Physics.Sim,width, height, mass);
        }
        public override void Update()
        {
            base.Update();
            
        }
    }
}
